
import { defineStore} from "pinia"

export default defineStore('quertID',{
    state:()=>{
        return {
            //查看具体博客的b_id
            queryBid:1 as any,
            queryUid:1 as any,
            
        }
    },
    actions:{ 
        setQueryBid(bId:any){
            this.queryBid=bId 
        },
        setQueryUid(uId:any){
            this.queryUid=uId 
        },
        setQueryCollectionId(uId:any){
            this.queryCollectionId=uId 
        },
        
    },
    persist:{
      key:'queryInfo',
      storage:sessionStorage
 }
})